package cas.ihep.hadoop.util;

import java.io.Closeable;

public interface HadoopLuaOopEngine {

    interface HepFile extends Closeable{
        int fd();
        String baseName();
        String fileName();
        String path();
        String absolutePath();
        void persist();
        void free();
        void delete();
        void reopen()throws Exception;
        void complete()throws Exception;
    }

    void hadoop_addOutput(String name);

    int hadoop_run(String cmd,HadoopRunConfig config)throws Exception;

    HepFile hadoop_getInput(int index);

    HepFile hadoop_getOutput(int index);
}
